#ifndef __H_OS_H__
#define __H_OS_H__

#include "linux_def.h"
#include "core.h"

typedef ssize_t	(*recv_pt)(connection_t *c, char *buf, size_t size);
typedef ssize_t	(*send_pt)(connection_t *c, char *buf, size_t size);

typedef ssize_t	(*recv_chain_pt)(connection_t *c, char *in);
typedef ssize_t	(*send_chain_pt)(connection_t *c, char *in, off_t limit);


ssize_t	g_recv(connection_t *c, char *buf, size_t size);
ssize_t	g_udp_recv(connection_t *c, char *buf, size_t size);
ssize_t	g_send(connection_t *c, char *buf, size_t size);
ssize_t	g_recv_chain(connection_t *c, char *in);
ssize_t	g_send_chain(connection_t *c, char *in, off_t limit);

#endif

